import {
	getAction,
	postAction,
	formAction
} from '@/api/manage'
////根路径


//角色管理
const addRole = (params) => postAction("/sys/role/add", params);
const editRole = (params) => postAction("/sys/role/modify", params);
//用户列表中新建、编辑查询角色列表
const queryall = (params) => postAction("/sys/role/list", params);

//用户管理
const addUser = (params) => postAction("/sys/user/add", params);
const editUser = (params) => postAction("/sys/user/modify", params);
const getUserList = (params) => getAction("/sys/user/page", params);
const changeUserStatus = (params) => postAction("/sys/user/set-status", params);
//验证用户是否存在
const checkOnlyUser = (params) => getAction("/sys/user/checkOnlyUser", params);
//改变密码
const changePassword = (params) => postAction("/sys/user/reset-pwd", params);

//权限管理
const addPermission = (params) => postAction("/sys/permission/add", params);
const editPermission = (params) => postAction("/sys/permission/modify", params);
const getPermissionList = (params) => getAction("/sys/permission/list", params);
const getSystemMenuList = (params) => getAction("/sys/permission/list", params);
const getSystemSubmenu = (params) => getAction("/sys/permission/getSystemSubmenu", params);
const queryTreeList = (params) => getAction("/sys/permission/list", params);
//角色列表-菜单授权功能
const queryTreeListForRole = (params) => getAction("/sys/permission/tree", params);
//角色权限查询
const queryRolePermission = (params) => getAction("/sys/role/query/permission/" + params);
//保存角色权限
const saveRolePermission = (params) => postAction("/sys/role/save-permission", params);
const queryPermissionsByUser = () => getAction("/sys/permission/user/permission");

const queryPermissionRule = (params) => getAction("/sys/permission/queryPermissionRule", params);

// 部门管理
const queryDepartTreeList = (params) => getAction("/sys/dept/tree", params);
const queryIdTree = () => getAction("/sys/dept/tree");
const deleteByDepartId = (params) => getAction("/sys/dept/delete/" + params);





// //工单业务
// const addOrder = (parms) => postAction("/svc/order/set-up", parms)
// const editOrder = (parms) => postAction("/svc/order/modify", parms)
// const assignOrder = (parms) => postAction("/svc/order/assign", parms)
// const cancelOrder = (parms) => postAction("/svc/order/cancel", parms)
// const getOrderInfo = (parms) => getAction("/svc/order/info/" + parms)
// const orderBeginServe = (parms) => postAction("/svc/order/begin", parms)
// const orderFinishServe = (parms) => postAction("/svc/order/complete", parms)
// const commentOrder = (parms) => postAction("/svc/order/comment", parms)
// const revisitOrder = (parms) => postAction("/svc/order/revisit", parms)
// const maintainOrder = (parms) => formAction("/svc/order/info/modify", parms)
// //政府管理
// const addPlanTask = (parms) => postAction("/svc/task/set-up", parms)
// const editPlanTask = (parms) => postAction("/svc/task/modify", parms)
// const getPlanTaskInfo = (parms) => getAction("/svc/task/info/" + parms)
// const inspectModify = (parms) => getAction("/svc/task/inspect-modify/" + parms)
// const inspectAssign = (parms) => getAction("/svc/task/inspect-assign/" + parms)
// const inspectStart = (parms) => getAction("/svc/task/inspect-start/" + parms)
// const planSwitch = (parms) => getAction("/svc/task/switch/" + parms)
// const addProcurement = (parms) => postAction("/svc/govproc/add", parms)
// const editProcurement = (parms) => postAction("/svc/govproc/modify", parms)
// const planConvention = (parms) => postAction("/svc/task/rsv", parms)
// const startServe = (parms) => postAction("/svc/task/begin-order", parms)
// const getModifyProcurementInfo = (parms) => getAction("/svc/govproc/modify-info/" + parms)
// const getProcurementInfo = (parms) => getAction("/svc/govproc/info/" + parms)
// const getFinishInfo = (parms) => postAction("/svc/govproc/situation/complete", parms)
// const getRepeatInfo = (parms) => postAction("/svc/govproc/situation/repeat", parms)
// const auditProcurement = (parms) => postAction("/svc/govproc/to/examine", parms)
// const procurementSwitch = (parms) => getAction("/svc/govproc/switch/" + parms)
// const getElderTypeNum = () => getAction("/basicinfo/elder/subsidy-type")
// //社区驿站管理
// const addCommunity = (parms) => postAction("/homebased/station/community/add", parms)
// const editCommunity = (parms) => postAction("/homebased/station/community/modify", parms)
// const deleteCommunity = (parms) => getAction("/homebased/station/community/delete/" + parms)
// const getCommunityInfo = (parms) => getAction("/homebased/station/community/get/" + parms)
// const addEmp = (parms) => postAction("/homebased/emp/add", parms)
// const editEmp = (parms) => postAction("/homebased/emp/modify", parms)
// const deleteEmp = (parms) => getAction("/homebased/emp/delete/" + parms)
// const getEmpInfo = (parms) => getAction("/homebased/emp/info/" + parms)
// const getEmpBindProject = (parms) => postAction("/homebased/project/emp/page", parms)
// const getEmpMayBindProject = (parms) => postAction("/homebased/project/emp/get-unbind", parms)
// const empBindProject = (parms) => postAction("/homebased/project/emp/bind", parms)
// const empUnbindProject = (parms) => postAction("/homebased/project/emp/unbind", parms)
// const getCommunityCost = (parms) => postAction("/homebased/station/community/get-statistics", parms)
// //服务商管理
// const getUnbindStation = (parms) => postAction("/homebased/station/store/get-unbind", parms)
// const bindStation = (parms) => postAction("/homebased/station/store/bind", parms)
// const cancelBingStation = (parms) => getAction("/homebased/station/store/unbind/" + parms)
// const getStoresCost = (parms) => postAction("/homebased/station/store/get-statistics", parms)
// //养老机构
// const addGeracomium = (parms) => postAction("/healthcare/geracomium/add", parms)
// const editGeracomium = (parms) => postAction("/healthcare/geracomium/modify", parms)
// const deleteGeracomium = (parms) => getAction("/healthcare/geracomium/delete/" + parms)
// const getGeracomiumInfo = (parms) => getAction("/healthcare/geracomium/get/" + parms)
//家政服务
const addStore = (parms) => postAction("/homebased/station/store/add", parms)
const editStore = (parms) => postAction("/homebased/station/store/modify", parms)
const deleteStore = (parms) => getAction("/homebased/station/store/delete/" + parms)
const getStoreInfo = (parms) => getAction("/homebased/station/store/get/" + parms)
const editHmkOrder = (parms) => postAction("/svc/hmk/order/modify", parms)
const getHmkOrderInfo = (parms) => getAction("/svc/hmk/order/info/" + parms)
const assignHmkOrder = (parms) => postAction("/svc/hmk/order/assign", parms)
const cancelHmkOrder = (parms) => postAction("/svc/hmk/order/cancel", parms)
const backHmkOrder = (parms) => postAction("/svc/hmk/order/return", parms)
const hmkOrderBeginServe = (parms) => postAction("/svc/hmk/order/begin", parms)
const hmkOrderFinishServe = (parms) => postAction("/svc/hmk/order/complete", parms)
const revisitHmkOrder = (parms) => postAction("/svc/hmk/order/revisit", parms)
const commentHmkOrder = (parms) => postAction("/svc/hmk/order/comment", parms)
//服务项目
const addProject = (parms) => postAction("/homebased/project/org/add", parms)
const editProject = (parms) => postAction("/homebased/project/org/modify", parms)
const getProjectInfo = (parms) => getAction("/homebased/project/org/get/" + parms)
const deleteProject = (parms) => getAction("/homebased/project/org/delete/" + parms)
const bindProject = (parms) => postAction("/homebased/project/station/bind", parms)
const unbindProject = (parms) => postAction("/homebased/project/station/unbind", parms)
const getUnbindProject = (parms) => postAction("/homebased/project/station/get-unbind", parms)
//长者管理
const editModifyBase = (params) => postAction("/basicinfo/elder/modify-base", params)
const editModifySubsidy = (params) => postAction("/basicinfo/elder/modify-subsidy", params)
const editModifyResidence = (params) => postAction("/basicinfo/elder/modify-residence", params)
const editModifyRequirement = (params) => postAction("/basicinfo/elder/modify-requirement", params)
const editModifyHealth = (params) => postAction("/basicinfo/elder/modify-health", params)
const queryFamilyInfo = (params) => postAction("/basicinfo/elder/family-info", params)
const editFamilySave = (params) => postAction("/basicinfo/elder/family-save", params)
const editPharmacySave = (params) => postAction("/basicinfo/elder/pharmacy-save", params)
const editHospitalizationSave = (params) => postAction("/basicinfo/elder/hospitalization-save", params)
const healthdataMmhgAdd = (params) => postAction("/basicinfo/healthdata/mmhg-add", params)
const healthdataMmolAdd = (params) => postAction("/basicinfo/healthdata/mmol-add", params)
const healthdataBfAdd = (params) => postAction("/basicinfo/healthdata/add-bf", params)
const healthdataBoAdd = (params) => postAction("/basicinfo/healthdata/add-bo", params)
const healthdataBuaAdd = (params) => postAction("/basicinfo/healthdata/add-bua", params)
const healthdataBmiAdd = (params) => postAction("/basicinfo/healthdata/add-bmi", params)
const healthdataTempAdd = (params) => postAction("/basicinfo/healthdata/add-temp", params)
const healthrecordMmhg = (params) => postAction("/basicinfo/healthrecord/mmhg-record", params)
const healthrecordMmol = (params) => postAction("/basicinfo/healthrecord/mmol-record", params)
const healthrecordBf = (params) => postAction("/basicinfo/healthrecord/file/bf", params)
const healthrecordBo = (params) => postAction("/basicinfo/healthrecord/file/bo", params)
const healthrecordBua = (params) => postAction("/basicinfo/healthrecord/file/bua", params)
const healthrecordBmi = (params) => postAction("/basicinfo/healthrecord/file/bmi", params)
const healthrecordTemp = (params) => postAction("/basicinfo/healthrecord/file/temp", params)
const downloadTemplate = () => getAction("/basicinfo/excel/download/template")
const getCommunityNext = (parms) => getAction("/sys/admindivi/get-next/" + parms)
//健康管理师
const addAdvisor = (params) => postAction("/healthcare/advisor/biz/add", params)
const editAdvisor = (params) => postAction("/healthcare/advisor/biz/modify", params)
const assignAdvisor = (params) => postAction("/healthcare/advisor/biz/assign", params)
const assessAdd = (params) => postAction("/healthcare/report/assess/add", params)
const assessEdit = (params) => postAction("/healthcare/report/assess/modify", params)
//设备相关
const deleteDevice = (parms) => getAction("/device/del/" + parms)
const addHrDevice = (params) => postAction("/device/addhr", params)
const addGwDevice = (params) => postAction("/device/addgw", params)
const getDeviceBindInfo = (parms) => getAction("/device/one/" + parms)
const bindHrDevice = (params) => postAction("/device/bindhr-elder", params)
const bindGwDevice = (params) => postAction("/device/bindgw-elder", params)
const unbindHrOrGwDevice = (params) => postAction("/device/unbind-dev", params)
const getSleepReport = (params) => postAction("/device/get-dayreport", params)
//居家安全管理
const manageAlarm = (params) => postAction("/user-log/modify", params)
//养老评估
const addTemplate = (params) => postAction("/healthcare/tmpl/add", params)
const editTemplate = (params) => postAction("/healthcare/tmpl/modify", params)
const getTemplateInfo = (parms) => getAction("/healthcare/tmpl/info/" + parms)
const setTemplateStatus = (params) => postAction("/healthcare/tmpl/setStatus", params)
const getTemplateList = (params) => postAction("/healthcare/tmpl/list", params)
const getInternalTemplateList = (params) => postAction("/healthcare/tmpl/internal-list", params)
const addComprehensiveAssess = (params) => postAction("/healthcare/record/add", params)
const getQuestionnaire = (parms) => getAction("/healthcare/record/assess/" + parms)
const saveTemplateAnswer = (params) => postAction("/healthcare/record/go-step", params)
const addOneAssess = (params) => postAction("/healthcare/record/add-one", params)
const deleteAssess = (params) => postAction("/healthcare/record/del", params)
const getAssessInfo = (params) => postAction("/healthcare/record/info", params)
//评估计划
const addAssessTask = (params) => postAction("/healthcare/task/add", params)
const editAssessTask = (params) => postAction("/healthcare/task/modify", params)
const getAssessTaskInfo = (parms) => getAction("/healthcare/task/" + parms)
const finishAssessTask = (parms) => postAction("/healthcare/task/complete-task", parms)
const getAssessTaskAttrInfo = (parms) => getAction("/healthcare/task/attr-info/" + parms)
const deleteAssessTask = (parms) => postAction("/healthcare/task/del/" + parms)

//录像任务
const modifyRecordTask = (params) => postAction("/record/modify", params)
const changeTaskUsed = (params) => postAction("/record/used", params)
const addQuickRecord = (params) => postAction("/record/add-quick", params)
const otheRegionRecordUrl = (params) => postAction("/record/file-log/play", params)
const RealTime = (params) => postAction("/dev/onvif/absolutemove", params)

//外站列表
const getPlatformList = (params) => postAction("/platform/list-lower", params)
//实时云台
const Realtime = (params) => postAction("/dev/onvif/absolutemove", params)
// 获取码流 ， 云台
const Getsteram = (params) => postAction('/dev/onvif/getsteram', params)

//服务管理查询列表
const ServiceList = (params) => postAction("/serve/pageserve", params)
//服务管理新增
const ServiceAdd = (params) => postAction("/serve/addserve", params)
//服务管理编辑
const ServiceEdit = (params) => postAction("/serve/editserve", params)
//服务管理删除
const ServiceDel = (params) => postAction("/serve/deleteserve", params)
//服务管理启用禁用
const ServiceEnable = (params) => postAction("/serve/enable/forbidden", params)
//首页
const Homepages = (params) => postAction("/resource/homepage", params)
//运维管理
const Mocharesource = (params) => postAction("/resource/pageresource", params)
//设备管理列表
const devList = (params) => postAction("/dev/camera/all-page", params)
//摄像机管理编辑获取数据
const cameraEdit = (params) => postAction("/dev/camera/getParams", params)
//摄像机管理编辑
const cameraTbdEdit = (params) => postAction("/dev/camera/editParams", params)
//获取预置位
const queryAcquisition = (params) => postAction("/dev/onvif/getpresets", params)
//新增预置位
const addAcquisition = (params) => postAction("/dev/onvif/setpresets", params)
//运行预置位
const serveAcquisition = (params) => postAction("/dev/onvif/gotopresets", params)
//删除预置位
const deleteAcquisition = (params) => postAction("/dev/onvif/removepresets", params)
// 修改预置位
const editAcquisition = (params) => postAction("/dev/onvif/updatepresets", params)
//转码服务编辑
const transcodingEdit = (params) => postAction("/serve/getTranscoderParam", params)
//转码服务提交按钮事件
const transcodingSubmit = (params) => postAction("/serve/setTranscoderParam", params)
//运维管理时间
const MochareTime = (params) => postAction("/resource/timeresource", params)

// 多画面输出   
const MonitorList = (params) => postAction("/dev/monitor/list", params)
// 多画面配置  
const MonitorConfigure = (params) => postAction("/dev/monitor/configure", params)


// -----------------------------------------------------------------------------------------------
//系统时间
const NtpGain = (params) => postAction("/ntp/gain", params)
// 开启NTP服务
const NtpOpen = (params) => postAction("/ntp/open", params)
// 关闭NTP服务
const NtpClose = (params) => postAction("/ntp/close", params)
// 设置自动同步时间
const NtpSetting = (params) => postAction("/ntp/setting", params)
// 自动同步时间 
const NtpAutomatic = (params) => postAction("/ntp/automatic", params)
// 取消自动同步时间
const NtpShutautomatic = (params) => postAction("/ntp/shutautomatic", params)
// 手动同步时间
const NtpManual = (params) => postAction("/ntp/manual", params)
// 查询ntp状态
const NtpCancelsetting = (params) => postAction("/ntp/cancelsetting", params)
// 修改系统时间  
const NtpUpdate = (params) => postAction("/ntp/update", params)


export {
	editAcquisition,
	NtpUpdate,
	MonitorList,
	MonitorConfigure,
	NtpOpen,
	NtpClose,
	NtpSetting,
	NtpAutomatic,
	NtpShutautomatic,
	NtpManual,
	NtpCancelsetting,
	addRole,
	editRole,
	addUser,
	editUser,
	getUserList,
	changeUserStatus,
	queryall,
	checkOnlyUser,
	changePassword,
	getPermissionList,
	addPermission,
	editPermission,
	queryTreeList,
	queryRolePermission,
	saveRolePermission,
	queryPermissionsByUser,
	queryPermissionRule,
	queryDepartTreeList,
	queryIdTree,
	deleteByDepartId,
	queryTreeListForRole,
	getSystemMenuList,
	getSystemSubmenu,
	// addOrder,
	// editOrder,
	// cancelOrder,
	// getOrderInfo,
	// assignOrder,
	// orderBeginServe,
	// orderFinishServe,
	// commentOrder,
	// revisitOrder,
	// maintainOrder,
	// addPlanTask,
	// editPlanTask,
	// getPlanTaskInfo,
	editModifyBase,
	editModifySubsidy,
	editModifyResidence,
	editModifyRequirement,
	editModifyHealth,
	queryFamilyInfo,
	editFamilySave,
	editPharmacySave,
	editHospitalizationSave,
	healthdataMmhgAdd,
	healthdataMmolAdd,
	healthdataBfAdd,
	healthdataBoAdd,
	healthdataBuaAdd,
	healthdataBmiAdd,
	healthdataTempAdd,
	healthrecordMmhg,
	healthrecordMmol,
	healthrecordBf,
	healthrecordBo,
	healthrecordBua,
	healthrecordBmi,
	healthrecordTemp,
	addAdvisor,
	editAdvisor,
	assignAdvisor,
	assessAdd,
	assessEdit,
	// addProcurement,
	// inspectModify,
	// inspectAssign,
	// inspectStart,
	// planConvention,
	// startServe,
	// planSwitch,
	// addCommunity,
	// getCommunityInfo,
	// editCommunity,
	// deleteCommunity,
	addStore,
	// getUnbindStation,
	// bindStation,
	// cancelBingStation,
	// getModifyProcurementInfo,
	// editProcurement,
	// getProcurementInfo,
	// getFinishInfo,
	// getRepeatInfo,
	// auditProcurement,
	// procurementSwitch,
	getStoreInfo,
	deleteStore,
	editStore,
	addProject,
	editProject,
	getProjectInfo,
	deleteProject,
	bindProject,
	getUnbindProject,
	unbindProject,
	// addEmp,
	// editEmp,
	// deleteEmp,
	// getEmpInfo,
	// getEmpBindProject,
	// getEmpMayBindProject,
	// empBindProject,
	// empUnbindProject,
	editHmkOrder,
	getHmkOrderInfo,
	assignHmkOrder,
	cancelHmkOrder,
	backHmkOrder,
	hmkOrderBeginServe,
	hmkOrderFinishServe,
	revisitHmkOrder,
	commentHmkOrder,
	// getElderTypeNum,
	// getCommunityCost,
	// getStoresCost,
	deleteDevice,
	addHrDevice,
	addGwDevice,
	getDeviceBindInfo,
	bindGwDevice,
	bindHrDevice,
	unbindHrOrGwDevice,
	getSleepReport,
	manageAlarm,
	addTemplate,
	getTemplateInfo,
	editTemplate,
	setTemplateStatus,
	getTemplateList,
	addComprehensiveAssess,
	getQuestionnaire,
	saveTemplateAnswer,
	addOneAssess,
	deleteAssess,
	getAssessInfo,
	getInternalTemplateList,
	addAssessTask,
	getAssessTaskInfo,
	editAssessTask,
	finishAssessTask,
	getAssessTaskAttrInfo,
	deleteAssessTask,
	downloadTemplate,
	getCommunityNext,
	// addGeracomium,
	// editGeracomium,
	// deleteGeracomium,
	// getGeracomiumInfo,


	modifyRecordTask,
	changeTaskUsed,
	addQuickRecord,
	otheRegionRecordUrl,
	getPlatformList,
	Realtime,
	ServiceList,
	ServiceAdd,
	ServiceEdit,
	ServiceDel,
	Homepages,
	Mocharesource,
	devList,
	cameraEdit,
	cameraTbdEdit,
	queryAcquisition,
	addAcquisition,
	serveAcquisition,
	deleteAcquisition,
	transcodingEdit,
	transcodingSubmit,
	MochareTime,
	Getsteram,
	NtpGain,

}